/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.cellstore.entidad;

import java.io.Serializable;
import javax.persistence.*;

/**
 *
 * @author paescobar
 */
@Entity
@Table(name = "tb_systpar")
@NamedQueries({
    @NamedQuery(name = "TbSystpar.findAll", query = "SELECT t FROM TbSystpar t")})
public class TbSystpar implements Serializable {

    private static final long serialVersionUID = 1L;
    @EmbeddedId
    protected TbSystparPK tbSystparPK;
    @Column(name = "nOrden")
    private String nOrden;
    @Column(name = "cDesCor")
    private String cDesCor;
    @Column(name = "cDesLar")
    private String cDesLar;
    @Column(name = "cValor")
    private String cValor;
    @Column(name = "cCodIns")
    private String cCodIns;
    @Column(name = "cValMin")
    private String cValMin;
    @Column(name = "cValMax")
    private String cValMax;
    @Basic(optional = false)
    @Column(name = "lValida")
    private boolean lValida;
    @Basic(optional = false)
    @Column(name = "lActiva")
    private boolean lActiva;
    @Column(name = "cObserv")
    private String cObserv;
    @Basic(optional = false)
    @Column(name = "cCodUsu")
    private String cCodUsu;
    @Basic(optional = false)
    @Column(name = "tModifi")
    private String tModifi;

    public TbSystpar() {
    }

    public TbSystpar(TbSystparPK tbSystparPK) {
        this.tbSystparPK = tbSystparPK;
    }

    public TbSystpar(TbSystparPK tbSystparPK, boolean lValida, boolean lActiva, String cCodUsu, String tModifi) {
        this.tbSystparPK = tbSystparPK;
        this.lValida = lValida;
        this.lActiva = lActiva;
        this.cCodUsu = cCodUsu;
        this.tModifi = tModifi;
    }

    public TbSystpar(String cCodMod, String cCodTab, String cCodigo) {
        this.tbSystparPK = new TbSystparPK(cCodMod, cCodTab, cCodigo);
    }

    public TbSystparPK getTbSystparPK() {
        return tbSystparPK;
    }

    public void setTbSystparPK(TbSystparPK tbSystparPK) {
        this.tbSystparPK = tbSystparPK;
    }

    public String getNOrden() {
        return nOrden;
    }

    public void setNOrden(String nOrden) {
        this.nOrden = nOrden;
    }

    public String getCDesCor() {
        return cDesCor;
    }

    public void setCDesCor(String cDesCor) {
        this.cDesCor = cDesCor;
    }

    public String getCDesLar() {
        return cDesLar;
    }

    public void setCDesLar(String cDesLar) {
        this.cDesLar = cDesLar;
    }

    public String getCValor() {
        return cValor;
    }

    public void setCValor(String cValor) {
        this.cValor = cValor;
    }

    public String getCCodIns() {
        return cCodIns;
    }

    public void setCCodIns(String cCodIns) {
        this.cCodIns = cCodIns;
    }

    public String getCValMin() {
        return cValMin;
    }

    public void setCValMin(String cValMin) {
        this.cValMin = cValMin;
    }

    public String getCValMax() {
        return cValMax;
    }

    public void setCValMax(String cValMax) {
        this.cValMax = cValMax;
    }

    public boolean getLValida() {
        return lValida;
    }

    public void setLValida(boolean lValida) {
        this.lValida = lValida;
    }

    public boolean getLActiva() {
        return lActiva;
    }

    public void setLActiva(boolean lActiva) {
        this.lActiva = lActiva;
    }

    public String getCObserv() {
        return cObserv;
    }

    public void setCObserv(String cObserv) {
        this.cObserv = cObserv;
    }

    public String getCCodUsu() {
        return cCodUsu;
    }

    public void setCCodUsu(String cCodUsu) {
        this.cCodUsu = cCodUsu;
    }

    public String getTModifi() {
        return tModifi;
    }

    public void setTModifi(String tModifi) {
        this.tModifi = tModifi;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (tbSystparPK != null ? tbSystparPK.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TbSystpar)) {
            return false;
        }
        TbSystpar other = (TbSystpar) object;
        if ((this.tbSystparPK == null && other.tbSystparPK != null) || (this.tbSystparPK != null && !this.tbSystparPK.equals(other.tbSystparPK))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "org.cellstore.entidad.TbSystpar[ tbSystparPK=" + tbSystparPK + " ]";
    }
}
